package com.hxzy.core.web;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.log4j.Logger;

import com.hxzy.core.cache.DictCache;
 
/**
 * @author Administrator
 *
 */
public  class SysGlobalListener implements ServletContextListener   {
	private ServletContext context = null;
	public static Logger log = Logger.getLogger(SysGlobalListener.class.getName());

	public void contextDestroyed(ServletContextEvent event) {
	}

	public void contextInitialized(ServletContextEvent event) {
		context = event.getServletContext();
		log.debug("SysGlobalListener is starting ......");
		DictCache.initDictCache(context);
		log.debug("SysGlobalListener is ready!");
	}
}
